Dynomotion

Group: DynoMotion Message: 11211 From: Toby Rule Date: 3/13/2015
Subject: FW: parameters with M_Action_Callback
Hi Tom,

Is there a way to use p q r parameters with  KMotion_dotNet.MCODE_TYPE.M_Action_Callback, like this:

M107 P1 (M_Action_Callback, pass 1 to user callback)

I tried setting parameters and then doing getUserData from the callback to check the parameter values, but the user data values don't seem to be set for M_Action_Callback codes. 

I am able to work around this by setting the parameter value in a previous m-code with KMotion_dotNet.MCODE_TYPE.M_Action_Program:

m106 P1 (M_Action_Program, sets the value which can be read with getUserData)
m106 (M_Action_Callback, invokes callback which reads parameter using  getUserData, does some stuff, and returns control to kflop)

but I would rather do it with one code.

Thanks,

Toby

The information contained in this transmission is intended only for the person or entity
to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive
material. If you are not the intended recipient, please contact the sender immediately
and destroy the material in its entirety, whether electronic or hard copy. You are
notified that any review, retransmission, copying, disclosure, dissemination or other
use of, or taking of any action in reliance upon this information by persons or entities
other than the intended recipient is prohibited.